#include "my_stdio.h"

#include <stdio.h>
#include <string.h>
int main()
{
    mFILE* pf = mfopen("log.txt","w"); 
    if (pf == NULL)
    {
        perror("fopen");
    }
    char buff[30];
    scanf("%s",buff);
    mfwrite(buff,strlen(buff),pf);
    mfclose(pf);
    return 0;
}
